import request from "@/api/request";

const url = "/system/sys/role"

export function roleList(query) {
    return request({
        url: `${url}/pageList`,
        method: 'get',
        params: query
    })
}

export function save(role) {
    return request.post(`${url}`, role)
}

export function updateById(role) {
    return request.put(`${url}`, role)
}

export function removeById(id) {
    return request.delete(`${url}?idList=${id}`)
}

export function getRoleById(id) {
    return request.get(`${url}/${id}`)
}



